package marker;

import generator.service.PropertiesService;
import generator.service.ReadWrite;

import java.util.LinkedList;
import java.util.List;


public final class MarkerTool
{
    private MarkerTool( )
    {
    };

    public static void run( )
    {
        PropertiesService.init( );
        List<String> listFiles = new LinkedList<String>( );
        String filePatternFilter = PropertiesService.getProperty( "marker.templates.pattern" );
        String pathTemplates = PropertiesService.getProperty( "marker.templates.path" );
        ReadWrite.findFiles( -1, listFiles, pathTemplates, filePatternFilter );

        for ( String file : listFiles )
        {
            ReadWrite.appendMark( file );
        }
    }
}
